Optimal. Leaf size=54 \[ \frac {(1-a x)^{-\frac {1}{2} n (1+n)} (1+a x)^{\frac {1}{2} (1-n) n} (1-a n x)}{a^3 n \left (1-n^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.027, Rules used = {82}
\begin {gather*} \frac {(1-a x)^{-\frac {1}{2} n (n+1)} (a x+1)^{\frac {1}{2} (1-n) n} (1-a n x)}{a^3 n \left (1-n^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 82
Rubi steps
\begin {align*} \int x^2 (1-a x)^{-1-\frac {1}{2} n (1+n)} (1+a x)^{-1-\frac {1}{2} (-1+n) n} \, dx &=\frac {(1-a x)^{-\frac {1}{2} n (1+n)} (1+a x)^{\frac {1}{2} (1-n) n} (1-a n x)}{a^3 n \left (1-n^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 49, normalized size = 0.91 \begin {gather*} \frac {(1-a x)^{-\frac {1}{2} n (1+n)} (1+a x)^{-\frac {1}{2} (-1+n) n} (-1+a n x)}{a^3 n \left (-1+n^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 52, normalized size = 0.96
method | result | size |
gosper | \(\frac {\left (a x +1\right )^{-\frac {1}{2} n^{2}+\frac {1}{2} n} \left (a n x -1\right ) \left (-a x +1\right )^{-\frac {1}{2} n^{2}-\frac {1}{2} n}}{a^{3} n \left (n^{2}-1\right )}\) | \(52\) |
risch | \(-\frac {\left (-a x +1\right )^{-1-\frac {1}{2} n^{2}-\frac {1}{2} n} \left (a^{3} x^{3} n -a^{2} x^{2}-a n x +1\right ) \left (a x +1\right )^{-1-\frac {1}{2} n^{2}+\frac {1}{2} n}}{n \left (n^{2}-1\right ) a^{3}}\) | \(72\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.31, size = 63, normalized size = 1.17 \begin {gather*} \frac {{\left (a n x - 1\right )} e^{\left (-\frac {1}{2} \, n^{2} \log \left (a x + 1\right ) - \frac {1}{2} \, n^{2} \log \left (-a x + 1\right ) + \frac {1}{2} \, n \log \left (a x + 1\right ) - \frac {1}{2} \, n \log \left (-a x + 1\right )\right )}}{{\left (n^{3} - n\right )} a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 74, normalized size = 1.37 \begin {gather*} -\frac {{\left (a^{3} n x^{3} - a^{2} x^{2} - a n x + 1\right )} {\left (a x + 1\right )}^{-\frac {1}{2} \, n^{2} + \frac {1}{2} \, n - 1} {\left (-a x + 1\right )}^{-\frac {1}{2} \, n^{2} - \frac {1}{2} \, n - 1}}{a^{3} n^{3} - a^{3} n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.31, size = 140, normalized size = 2.59 \begin {gather*} -\frac {\frac {x^3}{\left (n^2-1\right )\,{\left (a\,x+1\right )}^{\frac {n\,\left (n-1\right )}{2}+1}}-\frac {x}{a^2\,\left (n^2-1\right )\,{\left (a\,x+1\right )}^{\frac {n\,\left (n-1\right )}{2}+1}}+\frac {1}{a^3\,n\,\left (n^2-1\right )\,{\left (a\,x+1\right )}^{\frac {n\,\left (n-1\right )}{2}+1}}-\frac {x^2}{a\,n\,\left (n^2-1\right )\,{\left (a\,x+1\right )}^{\frac {n\,\left (n-1\right )}{2}+1}}}{{\left (1-a\,x\right )}^{\frac {n\,\left (n+1\right )}{2}+1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________